<?php
defined('IN_ZEEGING') or die('Access Denied');
class View extends Base{
	protected $vars=array();
	public function __construct(){
	}
	public function assign($var,$value){
		if(is_array($var)){
			$this->vars=array_merge($this->vars,$var);
		}else{
			$this->vars[$var]=$value;
		}
	}
	public function display($file){
		extract($this->vars);
		include $this->initFilePath($file);
	}
	public function incTpl($file){
		include($this->initFilePath($file));
	}
	private function initFilePath($file){
		return TPL_PATH.$file.'.tpl.php';
	}
}
//------------------------------------------------
//End of File : /Core/View.class.php
//------------------------------------------------